
#include "hw_config.h"
#include "led.h"
#include "key.h"

#include "ili93x.h"

#if 1
void service_tftlcd_start(void)
{



	LCD_Init();

	LCD_Clear(RED);
	LCD_ShowString(20,50, (const u8 *)"--- ATMEGA128 ---", RED, YELLOW);	
	LCD_ShowString(20,70, (const u8 *)"2.8' TFT LCD TEST", RED, YELLOW);	
	LCD_ShowString(20,90, (const u8 *)"Written by JK Electronics", RED, YELLOW);
	LCD_ShowString(20,110, (const u8 *)"http://www.deviceshop.net", RED, YELLOW);
	LCD_ShowString(20,130, (const u8 *)"Date : 2011/4/18", RED, YELLOW);	


}
#endif

int main(void)
{
#if 1
	bsp_led_gpio_init();

	bsp_led_core_on(ledUserCore);
	bsp_led_bottom_on(ledUserBottom1);

	service_tftlcd_start();
#endif	
	while(1)
	{
	}

	return 0;

}
